import React,{Component} from 'react';
import {HashRouter,Route,Switch} from 'react-router-dom';
import Login from './pages/login';
import Admin from './pages/admin';

// 应用根组件

export default class Routers extends Component {

    render () {
        return  (
            <HashRouter>
                <Switch>
                    <Route path="/login" component={Login} ></Route>
                    <Route path="/" component={Admin} ></Route>
                </Switch>
            </HashRouter>
        )
    }
}